package moriarty.gwt.server.persistence;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;

import moriarty.gwt.shared.Submission;

import com.googlecode.objectify.ObjectifyService;

public class ObjectifyRegistrar implements ServletContextListener {

	public void contextInitialized(ServletContextEvent event) {
		
			//ADD ANY DataStoreObjects HERE!
			ObjectifyService.factory().register(Subscriber.class);
			ObjectifyService.factory().register(Submission.class);
			ObjectifyService.factory().register(moriarty.gwt.shared.Group.class);
			ObjectifyService.factory().register(moriarty.gwt.shared.User.class);
	}
	public void contextDestroyed(ServletContextEvent event) {
		
	}
}